package kr.co.doriclassic.pro14;

import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.FlowLayout;
import javax.swing.JLabel;

public class TrPanelInput extends JPanel {
	private JTextField tfInput;
	private JLabel lblNewLabel;

	public String getTfInput() {
		return tfInput.getText();
	}
	public void setTfInput(String text) {
		tfInput.setText(text);
	}

	public TrPanelInput() {

		initialize();
	}
	private void initialize() {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		lblNewLabel = new JLabel("거리를 마일단위로 입력하시오");
		add(lblNewLabel);
		
		tfInput = new JTextField();
		add(tfInput);
		tfInput.setColumns(5);
	}

}
